﻿class Door : Sprite
{
    private bool open;

    public Door(int posX , int posY)
        : base(posX, posY)
    {
        open = false;
        image = new Image("data/wall.png");
    }

    public bool GetOpen()
    {
        return open;
    }

    public void Open()
    {
        image = new Image("data/door.png");
        open = true;
    }

    public override string ToString()
    {
        return "door";
    }
}